package com.bw.ppjokeplay.commen.mvvm.viewmodel
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleObserver
import androidx.lifecycle.OnLifecycleEvent
/**
 * @author Lishaohe
 * @description:
 * @date :2021/11/9 0009 下午 6:14
 *
 */
interface IViewModel :LifecycleObserver{
    //创建
    @OnLifecycleEvent(value = Lifecycle.Event.ON_CREATE)
    fun create()

    //销毁
    @OnLifecycleEvent(value = Lifecycle.Event.ON_DESTROY)
    fun destrory()
}